package com.dubbo.demo.controller;

import com.dubbo.demo.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Carlos
 * @version 1.0
 * @Description TODO
 * @date 2021/11/1 21:37
 **/
@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserService userService;

    @ResponseBody
    @RequestMapping("/list")
    public List<String> list() {
        return userService.list();
    }

}
